let arr= [{
    name:"我是名称",
    age: 13,
    number:17375289138,
},
{
        name: "朱浩然",
        age: 31,
        number: 13083425397,
},
{
        name: "张三",
        age: 23,
        number: 15056249624,
},
{
        name: "李四",
        age: 43,
        number: 15105651994,
}
]

function fuzzySearch(arr, searchTerm) {
    // 使用 filter 方法来过滤数组  
    return arr.filter(item => {
        // 检查 name 和 number 属性是否包含搜索术语  
        return (
            String(item.name).toLowerCase().includes(searchTerm.toLowerCase()) ||
            String(item.number).toString().includes(searchTerm)
        );
    });
} 


// 进行模糊搜索  
const searchResults = fuzzySearch(arr, '24');
console.log(searchResults); // 输出包含“我是”的项  
